﻿using System.ComponentModel;

namespace NjamNjamAdminApp.Models
{
    public class KriterijumPozicija : INotifyPropertyChanged
    {
        private double m_Latituda;
        public double Latituda
        {
            get { return m_Latituda; }
            set
            {
                m_Latituda = value;
                OnPropertyChanged("Latituda");
            }
        }

        private double m_Longituda;
        public double Longituda
        {
            get { return m_Longituda; }
            set
            {
                m_Longituda = value;
                OnPropertyChanged("Longituda");
            }
        }

        private double m_Razdaljina;
        public double Razdaljina
        {
            get { return m_Razdaljina; }
            set
            {
                m_Razdaljina = value;
                OnPropertyChanged("Razdaljina");
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        public void OnPropertyChanged(string property)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null) handler(this, new PropertyChangedEventArgs(property));
        }
    }
}